package com.bdmc.work.domain.bo;

import com.bdmc.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

;
/**
 * 清运任务工单业务对象 work_order
 *
 * @author bdmc
 * @date 2022-03-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WorkOrderBo extends BaseEntity {

    /**
     * 
     */
    private Long orderId;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 工单号
     */
    private String orderNum;

    /**
     * 工单生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;

    /**
     * 设施id
     */
    private Long facilityId;

    private String facilityName;

    /**
     * 设备id
     */
    private Long deviceId;

    /**
     * 工单状态
     */
    private Integer orderStatus;

    /**
     * 车辆id
     */
    private Long carId;

    /**
     * 车牌号
     */
    private String carNum;

    /**
     * 司机id
     */
    private Long driverId;

    /**
     * 司机姓名
     */
    private String driverName;

    /**
     * 司机是否结果
     */
    private Integer driverDealStatus;

    /**
     * 司机处理时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime driverDealTime;

    /**
     * 主管id
     */
    private Long managerId;

    /**
     * 主管姓名
     */
    private String managerName;

    /**
     * 保洁id
     */
    private Long cleanerId;

    /**
     * 保洁姓名
     */
    private String cleanerName;

    /**
     * 保洁员处理结果
     */
    private Integer cleanerDealStatus;

    /**
     * 保洁员处理时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime cleanerDealTime;

    private String cleanerDealPic;

    private String cleanerDealContent;
    /**
     * 
     */
    private String remark;

    /**
     * 操作人员
     */
    private String createNickName;
}
